const Sequelize = require('sequelize');
const db = require('../detabase/db');

module.exports = db.sequelize.define(
    'user',
    {
        id:{
            type:Sequelize.INTEGER,//设置类型
            primaryKey:true, //主键
            autoIncrement:true

        },
        name:{
            type:Sequelize.STRING
        },
        email:{
            type:Sequelize.STRING
        },
        password:{
            type:Sequelize.STRING
        },
        created:{
            type:Sequelize.DATE,
            defaultValue:Sequelize.NOW //默认值
        }
    },{
        timestamps:false,//不要默认加东西
    }
);